<layout name="Public:header" />
<layout name="Public:loadeditor" />
<form method="post"  action="__URL__/save" >
    <input name="id" value="{$id}" type="hidden" /><br />
    标题：<input name="story_title" value="{$story_title}" /><br />
    内容：<textarea name="story_content" style="width:800px;height:400px;">{$story_content}</textarea><br />
    <input type="button" value="加载编辑器" id="btnLoadEdit" />
    <input type="submit" value="保存" />
</form>
<script>
    
    $(function() {
        var editor;
        $('#btnLoadEdit').click(function() {
            if(editor==null){
                 editor = KindEditor.create('textarea[name="story_content"]', {
                        urlType : 'absolute'
                    });	
            }
        });
    });    
</script>
<layout name="Public:footer" />
